package com.bckj.fastboot.iot.biz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bckj.fastboot.core.lang.model.PageResult;
import com.bckj.fastboot.iot.common.dto.query.IotProtocolDisplaySetQuery;
import com.bckj.fastboot.iot.common.dto.request.IotProtocolDisplaySetRequest;
import com.bckj.fastboot.iot.common.dto.response.IotProtocolDisplaySetResponse;
import com.bckj.fastboot.iot.common.entity.IotProtocolDisplaySet;

import java.util.List;

/**
 * IotProtocolDisplaySetService
 *
 * @author wfc
 * @date 2025/10/30 17:46
 **/
public interface IotProtocolDisplaySetService {

    boolean save(IotProtocolDisplaySetRequest request);

    boolean update(IotProtocolDisplaySetRequest request);

    IotProtocolDisplaySetResponse details(Long id);

    List<IotProtocolDisplaySetResponse> findList(IotProtocolDisplaySetQuery query);

    PageResult<IotProtocolDisplaySetResponse> page(IPage<IotProtocolDisplaySetResponse> page, IotProtocolDisplaySetQuery query);

    IotProtocolDisplaySet findOne(String code, String type);

    List<IotProtocolDisplaySet.Item> getItems(String code, String type);

    void clearItemsCache(String code, String type);
}
